import request from '@/utils/request'

export function listCert(query) {
  return request({
    url: '/lk/cermanage/list',
    method: 'get',
    params: query
  })
}


export function getCert(id) {
  return request({
    url: '/lk/cermanage/' + id,
    method: 'get'
  })
}

export function addCert(data) {
  return request({
    url: '/lk/cermanage',
    method: 'post',
    data: data
  })
}

export function updateCert(data) {
  return request({
    url: '/lk/cermanage',
    method: 'put',
    data: data
  })
}

export function delCert(ids) {
  return request({
    url: '/lk/cermanage/' + ids,
    method: 'delete'
  })
}

export function getCertCount(query) {
  return request({
    url: '/lk/cermanage/getCount',
    method: 'get',
    params: query
  })
}

